import 'package:flutter/material.dart';

class HomeEntity extends ChangeNotifier {
  List<AnimeEntity> bannerList;
  List<ClassEntity> classList;

  HomeEntity({this.bannerList, this.classList});

  void notify() {
    notifyListeners();
  }

  void setData(HomeEntity home) {
    bannerList = home.bannerList;
    classList = home.classList;
    notifyListeners();
  }
}

class AnimeEntity extends ChangeNotifier {
  String url;
  String imageUrl;
  String name;
  String episode;

  AnimeEntity(this.url, this.imageUrl, this.name, {this.episode});
}

class ClassEntity extends ChangeNotifier {
  String className;
  String classUrl;
  List<AnimeEntity> animeList;

  ClassEntity(this.className, this.classUrl, this.animeList);
}

class SearchEntity extends ChangeNotifier {
  List<AnimeEntity> list = List();

  void setData(List<AnimeEntity> list) {
    this.list = list;
    notifyListeners();
  }
}
